package presentation;

import java.io.Serializable;

import domain.user.Privilege;

/**
 * interface UIUser
 * used for presenting data of User object.
 * allows to reveal only the data for presentation,
 * without changing the User state.
 */
public interface UIUser extends Serializable
{
	/**
	 * @return User id
	 */
	public long getId();

	/**
	 * @param privilege privilege to query for.
	 * @return whether the user has this privilege.
	 */
	public boolean isAllowed(final Privilege privilege);
}
